<template>
  <div class="my-card-page">
    <el-card shadow="always">
      <div slot="header" class="clearfix">
        <line-header :title="title || routerName"></line-header>
      </div>
      <div class="page-card-body">
        <slot></slot>
      </div>
    </el-card>
  </div>
</template>

<script>
import lineHeader from "@/components/line-header/index";
export default {
  components: {
    lineHeader
  },
  props: {
    title: {
      type: String,
      default: ""
    }
  },
  data() {
    return {};
  },
  watch: {},
  computed: {
    routerName() {

      return this.$route.meta.title;
    }
  },
  methods: {},
  created() {},
  mounted() {}
};
</script>
<style lang="scss" scoped>
.my-card-page {
  min-height: calc(100vh - 230px);
  .el-card {
    height: 100%;
  }
}
</style>
